function diseaseInfo(disease_info){
    var disease = document.getElementById('disease'),
      kind = document.getElementById("kind"),
      alias = document.getElementById("alias"),
      brief = document.getElementById("brief"),
      department = document.getElementById("department"),
      check = document.getElementById("check"),
      method = document.getElementById("method"),
      drug = document.getElementById("drug"),
      fee = document.getElementById("fee"),
      infect = document.getElementById("infect"),
      cure_period = document.getElementById("cure_period"),
      cure_rate = document.getElementById("cure_rate"),
      proportion = document.getElementById("proportion"),
      population = document.getElementById("population"),
      r_symptom = document.getElementById("r_symptom"),
      r_disease = document.getElementById("r_disease");
    disease.innerHTML = disease_info["疾病"];
    if(disease_info["类型"]==""){
      kind.style.display = "none";
    } else{
        kind.innerHTML = disease_info["类型"];
    }
    if(disease_info["别名"]==""){
      alias.parentNode.style.display = "none";
    } else{
        alias.innerHTML = disease_info["类型"];
    }
    if(disease_info["简介"]==""){
      brief.style.display = "none";
      brief.nextSibling.style.display = "none"
    } else{
      var data = disease_info["简介"].split('\n');
      for (i in data){
        var p = document.createElement('p');
        p.innerHTML = "&nbsp; &nbsp; &nbsp; &nbsp;" + data[i];
        brief.appendChild(p);
      }
    }
    if(disease_info["挂什么科"]==""){
      department.parentNode.style.display = "none";
    } else{
      department.innerHTML = disease_info["挂什么科"].join("&nbsp; ");
    }
    if(disease_info["需做检查"]==""){
      check.parentNode.style.display = "none";
    } else{
      check.innerHTML = disease_info["需做检查"].join("&nbsp; ");
    }
    if(disease_info["治疗方法"]==""){
      method.parentNode.style.display = "none";
    } else{
      method.innerHTML = disease_info["治疗方法"].join("&nbsp; ");
    }
    if(disease_info["常用药物"]==""){
      drug.innerHTML = "暂无相关信息";
    } else{
      var data = disease_info["常用药物"];
      for (i in data){
        var a = document.createElement('a');
        a.href = "drug.html";
        a.innerHTML = data[i];
        drug.appendChild(a);
      }
    }
    if(disease_info["一般费用"]==""){
      fee.parentNode.style.display = "none";
    } else{
      fee.innerHTML = disease_info["一般费用"];
    }
    if(disease_info["传染性"]==""){
      infect.parentNode.style.display = "none";
    } else{
      infect.innerHTML = disease_info["传染性"].join("&nbsp; ");
    }
    if(disease_info["治愈周期"]==""){
      cure_period.parentNode.style.display = "none";
    } else{
      cure_period.innerHTML = disease_info["治愈周期"];
    }
    if(disease_info["治愈率"]==""){
      cure_rate.parentNode.style.display = "none";
    } else{
      cure_rate.innerHTML = disease_info["治愈率"];
    }
    if(disease_info["患病比例"]==""){
      proportion.parentNode.style.display = "none";
    } else{
      if(disease_info["患病比例"].length==2){
        proportion.innerHTML = disease_info["患病比例"].join("-");
      }else {
        proportion.innerHTML = disease_info["患病比例"][0];
      }
    }
    if(disease_info["好发人群"]==""){
      population.parentNode.style.display = "none";
    } else{
      population.innerHTML = disease_info["好发人群"].join("&nbsp; ");
    }
    if(disease_info["相关症状"]==""){
      r_symptom.parentNode.style.display = "none";
    } else{
      var data = disease_info["相关症状"];
      for (i in data){
        var a = document.createElement('a');
        a.href = "symptom.html";
        a.innerHTML = data[i];
        r_symptom.appendChild(a);
      }
    }
    if(disease_info["相关疾病"]==""){
      r_disease.parentNode.style.display = "none";
    } else{
      var data = disease_info["相关疾病"];
      for (i in data){
        var a = document.createElement('a');
        a.href = "disease.html";
        a.innerHTML = data[i];
        r_disease.appendChild(a);
      }
    }
}
// var disease_list = [{
//    "疾病":"泛细支气管炎",
//    "科室":"内科",
//    "简介":"弥漫性泛细支气管炎(diffusepanbronchiolitis ,DPB)是一种弥漫存\
//    在于两肺呼吸性细支气管的气道慢性炎症性疾病。受累部位主要是呼吸性细支气管\
//    以远的终末气道。由于炎症病变弥漫性地分布并累及呼吸性细支气管壁的全层,故\
//    称之为啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊\
//    啊啊啊啊啊啊啊啊啊啊啊",
//    "症状":['呼吸困难', '活动后气促', '咳嗽', '咳痰', '老人剧烈咳嗽']
//  }];
// 添加疾病简单信息到网页中
function addDisease(disease_list){
   for(var j = 0; j < 5; j++) {
     for(var i in disease_list)
       var big_box = document.getElementById("disease");
       var newA = document.createElement("a");
       var small_box = document.createElement("div");
       var title = document.createElement("div");
       var brief = document.createElement("div");
       var symptom = document.createElement("div");
       newA.href = 'disease.html';
       newA.style = "text-decoration:none";
       small_box.className = "row my-small-box";
       title.className = "row title";
       title.innerHTML = disease_list[i]["疾病"] + "<span class=\"dept\">[" + disease_list[i]["科室"] + "]</span>";
       brief.className = "row brief";
       brief.innerHTML = disease_list[i]["简介"];
       symptom.className = "row symptom";
       symptom.innerHTML = "<span class=\"sym\">相关症状:</span>" + disease_list[i]["症状"].join('、');
       small_box.appendChild(title);
       small_box.appendChild(brief);
       small_box.appendChild(symptom);
       newA.appendChild(small_box);
       big_box.appendChild(newA);
   }
}
